package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.AddLineHistoryDao;
import com.cntcdt.api.db.model.AddLineHistoryModel;
import com.cntcdt.api.service.AddLineHistoryService;

public class AddLineHistoryServiceImpl implements AddLineHistoryService {

	@Override
	public int insertModel(AddLineHistoryModel addLineHistory) {
		return AddLineHistoryDao.getInstance().insert(addLineHistory);
	}

	@Override
	public List<AddLineHistoryModel> findByTerminal(String terminal,int sortTime) {
		return AddLineHistoryDao.getInstance().findByTerminal(terminal,sortTime);
	}

}
